package com.qingke.practice1;

public class Vehicle {

	double speed;
	double size;
	
	public Vehicle(double speed,double size){
		this.speed =speed;
		this.size = size;
	}
	
	public void move(){
		
	}
	
	public void setSpeed(double speed){
		this.speed = speed;
	}
	
	public void speedUp(double speedup){
		speed = speed + speedup;
	}
	
	public void speedDown(double speeddown){
		speed = speed - speeddown;
	}
}


class TestVehicle{
	public static void main(String[]args){
		Vehicle v = new Vehicle(100,500);
		v.speedDown(20);
		System.out.println(v.speed);
		System.out.println(v.size);
	}
}